home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: phcoms4.seri.philips.nl!misf1!Pvestjen
- From: Pvestjen@ms.philips.nl (Patrick Vestjens)
- Subject: Re: Invalid Indirection???
- Message-ID: <1996Mar22.132529.4258@ms.philips.nl>
- Sender: news@ms.philips.nl
- Organization: Philips Medical Systems, Best
- X-Newsreader: TIN [version 1.2 PL2]
- References: <4i7cck$t67@infa.central.susx.ac.uk> <4iah9k$r02@newshost.cyberramp.net> <danpop.826916016@rscernix> <4ips1j$fq0@airdmhor.gen.nz>
- Date: Fri, 22 Mar 1996 13:25:29 GMT
-
- Simon Hosie (gumboot@airdmhor.gen.nz) wrote:
- : What's wrong with *temp?
-
- Nothing, but it is not a valid token. * and temp are valid tokens, but
- when you concatenate them (and thus get *temp) the result is not a valid
- token.
-
- I've been following this discussion and in my opinion there is at least
- one situation where spaces DO make a difference. If you leave out the
- space after the / in the expression "a / *b" (a divided by the value
- optained after dereferencing b) you get "a /*b" where the /* is
- interpreted (at least by the GNU preprocessor) as the start of a
- comment.
-
- Note however that comments are not in the grammar (they are being taken
- care of by the preprocessor) so this does not introduce an ambiguity in
- the grammar. It can lead to unexpected surprises though.
-
- Regards, Patrick.
-
-